package Com.Hupochuan.Vo;

import java.sql.Timestamp;

import Com.Hupochuan.Uil.Util.TimeStringUtil;

/*
 * 电影类型表 MovieType
 */
public class MovieType {
	//					字段名			字段类型		中文解析	缺省(Default)	备注
	private Long 		id;//			INT			ID		AUTO_INCREMENT	PRIMARY KEY
	private Long 		movieId;//		INT			电影ID	0	
	private Long 		typeId;//		INT			类型ID	0	
	private Float 		weight;//		FLOAT		权重		0	
	private Timestamp 	createTime;//	DATETIME	创建时间	No default	
	private Timestamp 	updateTime;//	DATETIME	更新时间	No default
	
	private String 	typeName;//	类型名
	
	/*
	 * 获得转换的时间字符串
	 */
	public String getCreateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.createTime);
	}
	public String getUpdateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.updateTime);
	}
	
	/*
	 * 参数注入
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getMovieId() {
		return movieId;
	}
	public void setMovieId(Long movieId) {
		this.movieId = movieId;
	}
	public Long getTypeId() {
		return typeId;
	}
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
}
